<div id='details-container' class='box' >
	<div class='row'>
	    <div id='petition-view-title' class="seven columns">
    		<h3 ><?= $petition->title?> </h3>
        </div>
	<div class='vertical-rule one columns'>
    </div>
        <div class="four columns" id='petition-view-votes'>
	        <h3 ><?= $petition->votes?> people support this</h3>
		</div>
    </div>
    <hr />
    
    <div class="row">
    	<div class="five columns">
			<?php 
			if (get_instance()->session->userdata('current_user')) ;//	get_instance()->load->view();
			else echo get_instance()->load->view('common/view-login');
			
			?>
        </div>
    </div>
    <hr />
    
	<div class='row'>
        <div id='petition-view-started' class = 'seven columns'>
        	<p><strong>Started by: </strong><?= $petition->user->full_name?> </p>

            <p><strong>Started on: </strong><?= date("j M,Y",$petition->created_time)?></p>
        </div>
       	<div class='vertical-rule-small one columns'></div>
        <div id='petition-view-start-date' class = 'four columns'>
        	<p><strong>Category:</strong> <?= $petition->category->name ?> </p>
        </div>
    </div>
    <hr />
    
    <div class="row">
    	<div id='petition-view-text'>
        	<p><?= $petition->text?></p>
        </div>
    </div>
</div> 